package com.jiejie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id
     */
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    /**
     * 优惠券名称
     */
    private String couponName;

    /**
     * 优惠券图片
     */
    private String couponPicture;

    /**
     * 优惠券金额
     */
    private Double couponAmount;

    /**
     * 优惠券使用条件（最低金额）
     */
    private Double couponUseConditions;

    /**
     * 优惠券配额：发券数量
     */
    private Integer couponQuota;

    /**
     * 已领取的优惠券数量
     */
    private Integer couponTake;

    /**
     * 已使用的优惠券数量
     */
    private Integer couponUsed;

    /**
     * 使用周期
     */
    private String couponUsagecycle;

    /**
     * 锁
     */
    private Integer couponVersion;

    /**
     * 状态
     */
    private Integer couponStatus;

    private LocalDateTime couponCreateTime;

    private LocalDateTime couponUpdateTime;

    private String orther1;

    private String orther2;

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }
    public String getCouponPicture() {
        return couponPicture;
    }

    public void setCouponPicture(String couponPicture) {
        this.couponPicture = couponPicture;
    }
    public Double getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(Double couponAmount) {
        this.couponAmount = couponAmount;
    }
    public Double getCouponUseConditions() {
        return couponUseConditions;
    }

    public void setCouponUseConditions(Double couponUseConditions) {
        this.couponUseConditions = couponUseConditions;
    }
    public Integer getCouponQuota() {
        return couponQuota;
    }

    public void setCouponQuota(Integer couponQuota) {
        this.couponQuota = couponQuota;
    }
    public Integer getCouponTake() {
        return couponTake;
    }

    public void setCouponTake(Integer couponTake) {
        this.couponTake = couponTake;
    }
    public Integer getCouponUsed() {
        return couponUsed;
    }

    public void setCouponUsed(Integer couponUsed) {
        this.couponUsed = couponUsed;
    }
    public String getCouponUsagecycle() {
        return couponUsagecycle;
    }

    public void setCouponUsagecycle(String couponUsagecycle) {
        this.couponUsagecycle = couponUsagecycle;
    }
    public Integer getCouponVersion() {
        return couponVersion;
    }

    public void setCouponVersion(Integer couponVersion) {
        this.couponVersion = couponVersion;
    }
    public Integer getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(Integer couponStatus) {
        this.couponStatus = couponStatus;
    }
    public LocalDateTime getCouponCreateTime() {
        return couponCreateTime;
    }

    public void setCouponCreateTime(LocalDateTime couponCreateTime) {
        this.couponCreateTime = couponCreateTime;
    }
    public LocalDateTime getCouponUpdateTime() {
        return couponUpdateTime;
    }

    public void setCouponUpdateTime(LocalDateTime couponUpdateTime) {
        this.couponUpdateTime = couponUpdateTime;
    }
    public String getOrther1() {
        return orther1;
    }

    public void setOrther1(String orther1) {
        this.orther1 = orther1;
    }
    public String getOrther2() {
        return orther2;
    }

    public void setOrther2(String orther2) {
        this.orther2 = orther2;
    }

    @Override
    public String toString() {
        return "Coupon{" +
            "couponId=" + couponId +
            ", couponName=" + couponName +
            ", couponPicture=" + couponPicture +
            ", couponAmount=" + couponAmount +
            ", couponUseConditions=" + couponUseConditions +
            ", couponQuota=" + couponQuota +
            ", couponTake=" + couponTake +
            ", couponUsed=" + couponUsed +
            ", couponUsagecycle=" + couponUsagecycle +
            ", couponVersion=" + couponVersion +
            ", couponStatus=" + couponStatus +
            ", couponCreateTime=" + couponCreateTime +
            ", couponUpdateTime=" + couponUpdateTime +
            ", orther1=" + orther1 +
            ", orther2=" + orther2 +
        "}";
    }
}
